
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  background-color: var(--color-bg-1);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.echarts-tooltip-diy {
  background: linear-gradient(
    304.17deg,
    rgb(253 254 255 / 60%) -6.04%,
    rgb(244 247 252 / 60%) 85.2%
  ) !important;
  border: none !important;

  /* Note: backdrop-filter has minimal browser support */

  border-radius: 6px !important;
  backdrop-filter: blur(10px) !important;

  .content-panel {
    display: flex;
    justify-content: space-between;
    width: 164px;
    height: 32px;
    margin-bottom: 4px;
    padding: 0 9px;
    line-height: 32px;
    background: rgb(255 255 255 / 80%);
    border-radius: 4px;
    box-shadow: 6px 0 20px rgb(34 87 188 / 10%);
  }

  .tooltip-title {
    margin: 0 0 10px;
  }

  p {
    margin: 0;
  }

  .tooltip-title,
  .tooltip-value {
    display: flex;
    align-items: center;
    color: #1d2129;
    font-weight: bold;
    font-size: 13px;
    line-height: 15px;
    text-align: right;
  }

  .tooltip-item-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
  }
}

.general-card {
  border: none;
  border-radius: 4px;

  & > .arco-card-header {
    height: auto;
    padding: 20px;
    border: none;
  }

  & > .arco-card-body {
    padding: 0 20px 20px;
  }
}

.split-line {
  border-color: rgb(var(--gray-2));
}

.arco-table-cell {
  .circle {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    background-color: rgb(var(--blue-6));
    border-radius: 50%;

    &.pass {
      background-color: rgb(var(--green-6));
    }
  }
}


/*======== arco-design ui css 重置 */

// /* 时间日期选择器 */
// .arco-picker {
//   border-radius: var(--border-radius-medium);
// }

// /* 输入框 */
// .arco-input-wrapper {
//   background-color: var(--color-fill-2);
//   border-radius: var(--border-radius-medium);
// }

// /* 按钮 */
// .arco-btn-size-medium {
//   border-radius: var(--border-radius-medium);
// }



// /* 菜单样式 - 侧边线条风格 */
.arco-menu .arco-menu-item, 
.arco-menu .arco-menu-group-title, 
.arco-menu .arco-menu-pop-header, 
.arco-menu .arco-menu-inline-header {
  position: relative;
  box-sizing: border-box;
  border-radius: 6px !important;
  margin: 2px 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: transparent !important;
}

// 菜单项悬停效果
.arco-menu-light .arco-menu-item:hover,
.arco-menu-light .arco-menu-group-title:hover,
.arco-menu-light .arco-menu-pop-header:hover,
.arco-menu-light .arco-menu-inline-header:hover {
  background: rgba(64, 158, 255, 0.06) !important;
  color: #409EFF !important;
}

// 选中状态 - 使用左侧线条
.arco-menu-light .arco-menu-item.arco-menu-selected,
.arco-menu-light .arco-menu-group-title.arco-menu-selected,
.arco-menu-light .arco-menu-pop-header.arco-menu-selected,
.arco-menu-light .arco-menu-inline-header.arco-menu-selected {
  background: rgba(64, 158, 255, 0.08) !important;
  color: #409EFF !important;
  font-weight: 600 !important;
  position: relative !important;
}

// 选中状态左侧线条
.arco-menu-light .arco-menu-item.arco-menu-selected::before,
.arco-menu-light .arco-menu-group-title.arco-menu-selected::before,
.arco-menu-light .arco-menu-pop-header.arco-menu-selected::before,
.arco-menu-light .arco-menu-inline-header.arco-menu-selected::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3px !important;
  height: 20px !important;
  background: #409EFF !important;
  border-radius: 0 2px 2px 0 !important;
  box-shadow: 0 0 8px rgba(64, 158, 255, 0.4) !important;
}

// 选中状态的图标颜色
.arco-menu-light .arco-menu-item.arco-menu-selected .arco-icon, 
.arco-menu-light .arco-menu-group-title.arco-menu-selected .arco-icon, 
.arco-menu-light .arco-menu-pop-header.arco-menu-selected .arco-icon, 
.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-icon, 
.arco-menu-light .arco-menu-item.arco-menu-selected .arco-menu-icon, 
.arco-menu-light .arco-menu-group-title.arco-menu-selected .arco-menu-icon, 
.arco-menu-light .arco-menu-pop-header.arco-menu-selected .arco-menu-icon, 
.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-menu-icon {
  color: #409EFF !important;
}

// 选中状态悬停效果
.arco-menu-light .arco-menu-item.arco-menu-selected:hover,
.arco-menu-light .arco-menu-group-title.arco-menu-selected:hover,
.arco-menu-light .arco-menu-pop-header.arco-menu-selected:hover,
.arco-menu-light .arco-menu-inline-header.arco-menu-selected:hover {
  background: rgba(64, 158, 255, 0.12) !important;
  color: #409EFF !important;
}

// 内联菜单选中状态
.arco-menu-inline .arco-menu-inline-content .arco-menu-item.arco-menu-selected {
  background: rgba(64, 158, 255, 0.08) !important;
  border-radius: 6px !important;
  margin: 2px 8px !important;
  position: relative !important;
}

.arco-menu-inline .arco-menu-inline-content .arco-menu-item.arco-menu-selected .arco-menu-item-inner {
  color: #409EFF !important;
  padding-left: 15px !important;
  font-weight: 600 !important;
  position: relative !important;
}

// 内联菜单选中状态左侧线条
.arco-menu-inline .arco-menu-inline-content .arco-menu-item.arco-menu-selected::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3px !important;
  height: 20px !important;
  background: #409EFF !important;
  border-radius: 0 2px 2px 0 !important;
  box-shadow: 0 0 8px rgba(64, 158, 255, 0.4) !important;
}

.arco-menu-inline .arco-menu-inline-content .arco-menu-item .arco-menu-item-inner {
  padding-left: 15px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

// 菜单项通用样式
.arco-menu-item,
.arco-menu-group-title,
.arco-menu-pop-header,
.arco-menu-inline-header {
  font-size: 14px !important;
  line-height: 1.5 !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  margin: 2px 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

// 图标样式
.arco-menu-item .arco-icon,
.arco-menu-group-title .arco-icon,
.arco-menu-pop-header .arco-icon,
.arco-menu-inline-header .arco-icon,
.arco-menu-item .arco-menu-icon,
.arco-menu-group-title .arco-menu-icon,
.arco-menu-pop-header .arco-menu-icon,
.arco-menu-inline-header .arco-menu-icon {
  font-size: 16px !important;
  margin-right: 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}